﻿using Exceptionless;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Text;

namespace SX.Core.Logging.Extension
{
    public static class AppBuilderExtensions
    {
        /// <summary>
        /// 添加Logging到管道,基于Exceptionless
        /// </summary>
        /// <param name="app"></param>
        /// <param name="serverName"></param>
        /// <param name="pathMatch">访问路径</param>
        /// <returns></returns>
        public static IApplicationBuilder UseLogging(this IApplicationBuilder app,IConfiguration configuration)
        {
            app.UseExceptionless(configuration);
            return app;
        }
    }
}
